<!-- Generated template for the HomeInfoComponent component -->
<div>
  <div class="fixed-view">
    <button ion-button color="primary" clear full *ngFor="let tab of tab_list;let idx = index"
            [ngClass]="getTabBtnStyle(idx)" (click)="onTabBtnSelected(idx, tab.value)">{{tab.title}}</button>
  </div>

  <div class="info-item" *ngFor="let news of news_list" (click)="onInfoDetailSelected(news)">
    <img class="item-image" [src]="news.image">
    <div class="item-body">
      <div class="content">{{news.newsTitle}}</div>
      <div class="footer">
        <div>
          <ion-icon name="stats" color="gray-normal"></ion-icon>
          {{news.clickNum}}
        </div>
        <div>{{news.publishTime|date:'MM-dd HH:mm'}}</div>
      </div>
    </div>
  </div>
</div>
